append multiple datasets with a foreach loop in an xml document